package RedisObject;

import RedisObject.enums.RedisEncoding;
import RedisObject.enums.RedisType;

public class RedisObject {
    private final RedisType redisType; // 数据类型
    private final RedisEncoding redisEncoding; // 编码方式
    private final Object ptr; // 指向数据的指针

    public RedisObject(RedisType redisType, RedisEncoding redisEncoding, Object ptr) {
        this.redisType = redisType;
        this.redisEncoding = redisEncoding;
        this.ptr = ptr;
    }

    public RedisType getRedisType() {
        return redisType;
    }

    public RedisEncoding getRedisEncoding() {
        return redisEncoding;
    }

    public Object getPtr() {
        return ptr;
    }
}
